﻿using de.wolfmarco.pas.Shared.Interfaces;
using Microsoft.Practices.Prism.Modularity;
using System.Windows.Controls.Ribbon;
using System.Linq;
using de.wolfmarco.pas.Shared.Helper;
using de.wolfmarco.pas.Accounting.MVVM;
using de.wolfmarco.pas.Shared.MVVM;
using de.wolfmarco.pas.Accounting.Database;

namespace de.wolfmarco.pas.Accounting.MVVM
{
    /// <summary>
    /// Interaktionslogik für AccountingRibbonTabView.xaml
    /// </summary>
    public partial class AccountingRibbonTabView : RibbonTab, IRibbonTab
    {
        public AccountingRibbonTabView()
        {
            InitializeComponent();

            BindingHelper.BindElement(scheduledCashFlowList, "RequestNavigateCommand", "ScheduledCashFlowView");

            BindingHelper.BindElement(scheduledCashFlowAdd, "ShowEditWindowCommand", new EditWindowInfo(typeof(ScheduledCashFlowEditView),typeof(ScheduledCashFlow)) );

        }

        public string ModuleName
        {
            get { return AccountingHelper.ModuleName; }
        }
    }
}
